﻿using UnityEngine;

public enum SpriteState
{
    Normal,
    Disabled,
    Activate,
    Click,
}

[ExecuteInEditMode]
public class SpriteBasic : MonoBehaviour
{
    [SerializeField] string normalSprite;
    [SerializeField] string disabledSprite;
    [SerializeField] string activateSprite;

    [SerializeField] string clickSprite;
    [SerializeField] UIAtlas mAtlas;

    public string GetSpriteName(SpriteState state)
    {
        switch (state)
        {
            case SpriteState.Normal: return normalSprite;
            case SpriteState.Disabled: return disabledSprite;
            case SpriteState.Activate: return activateSprite;
            case SpriteState.Click: return clickSprite;
            default: return normalSprite;
        }
    }
}